package org.zoomdev.zoom.dao.driver;

import org.zoomdev.zoom.dao.DaoException;
import org.zoomdev.zoom.dao.ddl.utils.H2MetaUtils;
import org.zoomdev.zoom.dao.meta.TableKeyMeta;

import java.sql.Connection;
import java.sql.SQLException;

public final class H2Driver extends SqlDriver {
    @Override
    public void fill(Connection conn, TableKeyMeta tableMeta) {
        try {
            H2MetaUtils.fillTableMeta(conn, tableMeta);
        } catch (SQLException e) {
            throw new DaoException("获取表meta数据出错:" + tableMeta.getName(), e);
        }
    }
}
